#include<iostream>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>

// mykill -signumber pid
int main(int argc, char *argv[])
{
    if(argc != 3)
    {
        std::cout<<"There is an error in your input format. Please re-enter it! "<<std::endl;
        exit(1);
    }

    int signum = std::stoi(argv[1]+1);
    int pid = std::stoi(argv[2]);

    int n = kill(pid, signum);
    return 0;
}